@model Eqwww.Web.Areas.SystemManage.Models.MyAccount.ChangeRealNameModel

@{
    ViewData["Title"] = "修改姓名";
    Layout = "~/Views/Shared/_ManageFormLayout.cshtml";
}

<form id="form1" class="mdui-m-t-3 mdui-m-b-3">
    <div asp-validation-summary="ModelOnly" class="mdui-textfield-error"></div>
    <div class="mdui-container">

        <div class="mdui-row">

            <div class="mdui-col-xs-12 mdui-col-md-6">

                <div class="mdui-textfield mdui-textfield-floating-label">
                    <label asp-for="RealName" class="mdui-textfield-label"></label>
                    <input asp-for="RealName"  class="mdui-textfield-input mdui-color-grey-100" />
                    <span asp-validation-for="RealName" class="mdui-textfield-error"></span>
                </div>
            </div>
            

        </div>

    </div>
</form>

@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}


    <script>
        
        $(function () {

            
        });

        function submitForm(index) {

            if (!$("#form1").valid()) {
                return false;
            }
            var postData = $('#form1').formSerialize();

            $.submitForm({
                url: "/SystemManage/MyAccount/ChangeRealNameSubmit",
                param: postData,
                success: function () {
                    top.frames['layui-layer-iframe' + index].location.reload();
                    $.modalClose();
                }
            });

        };
    </script>
}